import request from '@/utils/request.js'

export const getSuggestion = (keyword) => {
  return request({
    url: 'v1_0/suggestion',
    method: 'GET',
    params: {
      q: keyword
    }
  })
}
export const getSearchResult = (keyword, page) => {
  return request({
    url: 'v1_0/search',
    method: 'GET',
    params: {
      q: keyword,
      page
    }
  })
}
